package com.dzj.exam.service;

import com.dzj.exam.entity.ExamRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dzj.exam.vo.ExamRankingVO;
import com.dzj.exam.vo.StartExamVo;
import com.dzj.exam.vo.SubmitAnswerVo;

import java.util.List;

/**
 * 考试服务接口
 */
public interface ExamService extends IService<ExamRecord> {

    ExamRecord startExam(StartExamVo startExamVo);

    ExamRecord customGetExamRecordById(Integer id);

    void customSubmitAnswer(Integer examRecordId, List<SubmitAnswerVo> answers) throws InterruptedException;

    ExamRecord gradeExam(Integer examRecordId) throws InterruptedException;

    void customRemoveById(Integer id);

    List<ExamRankingVO> customGetRanking(Integer paperId, Integer limit);
}
 